package com.tmp;

/**
 * @author: chenhs
 * @date: Created in 13:42 2019/8/27
 **/
public class StringTableTest {

    public static void main(String[] args) {
/*
        String s1 = new String("he") + new String("llo");
        String s2 = s1.intern();
        String s3 = "hello";
        String s4 = "he" + "llo";
        //true
        System.out.println(s1 == s2);
        //true
        System.out.println(s1 == s3);
        //true
        System.out.println(s2 == s3);
        //true
        System.out.println(s1 == s4);
*/


//        Integer i1 = new Integer(5);
//        Integer i2 = new Integer(5);
        //false
//        System.out.println(i1 == i2);

        if (true) {
            if (true) {
                if (true) {
                    System.out.println("done 1");
                    //这里return之后，不会执行done2
                    return;
                }
            }

            System.out.println("done 2");
        }
    }

}
